package cn.wwk.canal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * 
 * @TableName user
 */
@TableName(value ="user")
@Data
@ToString
public class User implements Serializable {
    /**
     * 用户主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 姓名
     */
    @TableField(value = "name")
    private String name;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 常住地id 对应location 表
     */
    @TableField(value = "lid")
    private String lid;

    /**
     * 手机号
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 身份证号
     */
    @TableField(value = "card")
    private String card;

    /**
     * 0绿码 1黄码 2红码
     */
    @TableField(value = "status")
    private String status;

    /**
     * 所属社区id
     */
    @TableField(value = "cid")
    private Integer cid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


}